public class Primenumber{
    public static void main(String[] args) {
        for(int i=2;i<=100;i++){
            int m = 1;
            for(int j = 2;j<=i/2;j++){
                if(i%j==0){
                    m = 0;
                    break;
                }
            }
            if(m ==1 )
            System.out.println(i);
         }
    }
}
